#include <iostream>
#include <list>
using namespace std;


void test_list1()
{
    list<int> lt1;
    lt1.push_back(1);
    lt1.push_back(2);
    lt1.push_back(3);
    lt1.push_back(4);

    list<int>::iterator it1 = lt1.begin();
    while (it1 != lt1.end())
    {
        cout << *it1 << " ";
        ++it1;
    }
    cout << endl;

    for (const auto& e : lt1)
    {
        cout << e << " ";
    }
    cout << endl;
}

#include "list.h"
int main()
{
    User::test_list3();

    return 0;
}


































